<!--
  // Creation History
  // --------------------------------------------------------------
  //	Company:			HTHK
  //	NAME:				Group.jsp
  //	TITLE:				
  //	FUNCTION:			Add or Update Group .
  //	BY:				Poly Li
  //	DATE:				14/01/2004
  // --------------------------------------------------------------
-->

<%@ include file="../tssheader.jsp"   %>
<%@ page import="tss.group.*" %>
<%@ page import="tss.options.*" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="java.util.Date" %>

<script language="JavaScript" >

function formValidation()
{
        var d1=fm.group_name;
	if(isNull(d1,"Group Name "))
		return false;
    
	return true;
}

</script>

<%
	//Get A Group name Code list
	GroupOptions groupOptions = new GroupOptions();

    //Get A Staff Project
	GroupBean group = (GroupBean)request.getAttribute("groups");
	if (group == null)
	{   group = new Group();}


    boolean readonlyFlag = true;
    formAction = request.getParameter("formAction");
    if (formAction.equals("Create"))
	{
		readonlyFlag = false;
        }
%>
<body>

<h2>Project Group Maintenance</h2>

<form id=fm method=post action=<%=contextPath%>/servlet/tss.group.GroupServlet>
<input type=hidden name=formAction value=<%=formAction%> >
<table cols=10 border=0 >
<tr>
  <td>Project Group Name:</td>
  <td>&nbsp;</td>
  <td><input type=text name=group_name value="<%=group.getGroup_name()%>" onBlur="this.value=this.value.toUpperCase();" <%=readOnly%> maxlength=20 size=12></td>
</tr>

<tr>
  <td >Comments:</td>
  <td>&nbsp;</td>
<td><input type=text name=comments value="<%=group.getComments()%>" maxlength=255 size=40></td>
</tr>

</table>
<br>
<hr>

<p>
	<INPUT type=button value=Save onclick="save()">
	<INPUT type=reset  value=Cancel >
	<INPUT type=button value=Delete  onclick="deleteRecord()"  >
	<INPUT type=button value=Back onclick=history.back() >
</p>
</form>
<%@ include file="../tssfooter.jsp" %>
</body>
</body>
</html>

